<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>        
        <title></title>
        <meta http-equiv="content-type" content="text/htm;charset=utf-8"/>
        {css file="__PUBLIC__/css/acommon.css" /}
        {jquery/}
        <script>
            $(function(){
                $('tr').mouseover(function(){
                    $(this).css('background-color','#f6f6f6');
                }).mouseout(function(){
                    $(this).css('background-color','#fff');
                });
            });
        </script>
</head>
<body>
<div id="hd_jqueryui_div"></div>
<ul class="top_title">
    <li>
        <a href="__CONTROL__/index" class="menu_title_a">
            <i class="icon icon-share-alt"></i>&nbsp;用户列表
        </a>
    </li>
    <li>|</li>
    <li><p class="menu_title">修改用户</p></li>
</ul>
<form action="__CONTROL__/editUser" method="post" name="editUser">
    <input type="hidden" name="userid" value="{$user.userid}"/> 
    <table class="table">
        <thead>
            <tr>
                <th colspan="2">修改用户</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td align="right" width="40%">用户名</td>
                <td>
                    <input type="text" name="username" value="{$user.username}"/>
                </td>
            </tr>
            <tr>
                <td align="right">密码：</td>
                <td>
                    <input type="password" name="password" value="{$user.password}"/>
                </td>
            </tr>
            <tr>
                <td align="right">邮箱：</td>
                <td>
                    <input type="text" name="email" value="{$user.email}"/>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <input type="submit" class="menu_submit" value="提交修改"/>
                </td>
            </tr>
        </tbody>
    </table>
</form>
<script>
    $('.menu_submit').click(function(){
        if($('input[name="username"]').val() == ''){
            jqueryuiPoint('用户名不能为空');
            return false;
        }
        if($('input[name="password"]').val() == ''){
            jqueryuiPoint('密码不能为空');
            return false;
        }
        jqueryuiConfirm('确认修改？','editUser');
        return false;
    });
</script>
</body>
</html>